import React, { Component } from 'react'
import './index.scss'
export default class TableBody extends Component {
    render() {
        const {crawlerData} = this.props;
        return (
            <tbody>
                {
                    crawlerData.map((item,index)=>{
                        return (
                            <tr key={index}>
                                <td className="desc-td">操作注意:{item.description}</td>
                                <td className="btn-td">
                                    <button className="btn btn-info"
                                        className ={['btn',item.loading?'btn-warning':'btn-info'].join(' ')}
                                    >
                                        {item.title}
                                    </button>
                                </td>
                            </tr>
                        )
                    })
                }
            </tbody>
        )
    }
}
